<%
String usernameSC = (String) session.getAttribute("session_name");
String idSC = (String) session.getAttribute("id");
String typeSC = (String) session.getAttribute("type");
if(usernameSC == null || typeSC.equals("student"))
	response.sendRedirect("error.jsp");
%>
<html>
<HEAD><TITLE>Upload Image</TITLE></HEAD>
<script>
</script>
<BODY>
<FORM NAME="form1" METHOD="POST" ACTION="uploadProc.jsp" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="file"/> <BR>
<INPUT TYPE="SUBMIT" VALUE="Upload"/>
<INPUT TYPE="RESET" VALUE="Reset">
</FORM>
</BODY>
</HTML>